package com.example.quartz.jobs;

import com.example.quartz.service.BaseJob;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * Created by xuzhuang on 2018/9/28.
 */
@Component("testDataJob")
public class TestDataJob implements BaseJob{

    private static Logger log = LoggerFactory.getLogger(TestDataJob.class);

    public TestDataJob() {

    }
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        log.info("Hello Job执行时间: " + new Date());
    }
}
